function JsLoader(sUrl)  // 加载javascript
{
    var _script = document.createElement('script');
    _script.setAttribute('type', 'text/javascript');
    _script.setAttribute('src', sUrl);
    document.getElementsByTagName('head')[0].appendChild(_script);
}

function CssLoader(sUrl)  // 加载css
{
    var _css = document.createElement('link');
    _css.setAttribute('type', 'text/css');
    _css.setAttribute('rel', 'stylesheet');
    _css.setAttribute('href', sUrl);
    document.getElementsByTagName('head')[0].appendChild(_css);
}

var ajs = [
   'syntaxhighlighter/scripts/shCore.js',
   'syntaxhighlighter/scripts/shBrushBash.js',
   'syntaxhighlighter/scripts/shBrushCpp.js',
   'syntaxhighlighter/scripts/shBrushCSharp.js',
   'syntaxhighlighter/scripts/shBrushCss.js',
   'syntaxhighlighter/scripts/shBrushDelphi.js',
   'syntaxhighlighter/scripts/shBrushDiff.js',
   'syntaxhighlighter/scripts/shBrushGroovy.js',
   'syntaxhighlighter/scripts/shBrushJava.js',
   'syntaxhighlighter/scripts/shBrushJScript.js',
   'syntaxhighlighter/scripts/shBrushPhp.js',
   'syntaxhighlighter/scripts/shBrushPlain.js',
   'syntaxhighlighter/scripts/shBrushPython.js',
   'syntaxhighlighter/scripts/shBrushRuby.js',
   'syntaxhighlighter/scripts/shBrushScala.js',
   'syntaxhighlighter/scripts/shBrushSql.js',
   'syntaxhighlighter/scripts/shBrushVb.js',
   'syntaxhighlighter/scripts/shBrushXml.js'
];

for(var i=0,iLen=ajs.length;i<iLen;i++){
	JsLoader(ajs[i]);
}

var acss = ['syntaxhighlighter/styles/shCore.css','syntaxhighlighter/styles/shThemeDefault.css'];
for(var i=0,iLen=acss.length;i<iLen;i++){
	CssLoader(acss[i]);
}

